﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CardGame
{
    public class cl_0423_GameAccount
    {
        private cl_0423_AbstractState state;
        private string name;
        public int score;

        public cl_0423_GameAccount(string name,int score)
        {
            this.name = name;
            this.state = new cl_0423_PrimaryState(this);
            Console.WriteLine(this.name+"注册成功");
            Console.WriteLine("选择基础底分加成为:"+score);
            Console.WriteLine("");
            this.score = score;
        }

        public void setState(cl_0423_AbstractState state)
        {
            this.state = state;
        }

        public cl_0423_AbstractState getState()
        {
            return this.state;
        }

        public string getName()
        {
            return this.name;
        }


        public void play(string outcome)
        {
            state.play(outcome);
        }
    }
}